<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=utf-8" />
    <title>
      6.39.&nbsp;Inetutils-1.9.4
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  </head>
  <body class="lfs" id="lfs-8.0">
    <div class="navheader">
      <h4>
        Linux From Scratch - Version 8.0
      </h4>
      <h3>
        第六章&nbsp;安装基本系统软件
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="expat.html" title="Expat-2.2.0">上一页</a>
          <p>
            Expat-2.2.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="perl.html" title="Perl-5.24.1">下一页</a>
          <p>
            Perl-5.24.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="chapter06.html" title=
          "第六章&nbsp;安装基本系统软件">返回</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Linux From Scratch - Version 8.0 ">首页</a>
        </li>
      </ul>
    </div>
    <div class="wrap" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="ch-system-inetutils" name="ch-system-inetutils"></a>6.39.
        Inetutils-1.9.4
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <p>
          Inetutils 软件包，包含基本网络程序。
        </p>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">预计构建时间：</strong>
              <span class="segbody">0.4 SBU</span>
            </div>
            <div class="seg">
              <strong class="segtitle">所需磁盘空间：</strong>
              <span class="segbody">27 MB</span>
            </div>
          </div>
        </div>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          6.39.1. 安装 Inetutils
        </h2>
        <p>
          准备编译 Inetutils：
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr        \
            --localstatedir=/var \
            --disable-logger     \
            --disable-whois      \
            --disable-rcp        \
            --disable-rexec      \
            --disable-rlogin     \
            --disable-rsh        \
            --disable-servers</kbd>
</pre>
        <div class="variablelist">
          <p class="title">
            <strong>配置选项的含义：</strong>
          </p>
          <dl class="variablelist">
            <dt>
              <span class="term"><em class=
              "parameter"><code>--disable-logger</code></em></span>
            </dt>
            <dd>
              <p>
                此选项防止 Inetutils 安装 <span class="command"><strong>logger</strong></span> 程序，脚本使用此程序向系统日志守护进程传递消息。不要安装它，因为 Util-linux 会安装一个较新的版本。
              </p>
            </dd>
            <dt>
              <span class="term"><em class=
              "parameter"><code>--disable-whois</code></em></span>
            </dt>
            <dd>
              <p>
                此选项禁ommand><strong>whois</strong></span> 客户端，在 BFLS 中会有指导。书
              </p>
            </dd>
            <dt>
              <span class="term"><em class=
              "parameter"><code>--disable-r*</code></em></span>
            </dt>
            <dd>
              <p>
                这些参数禁用了废弃程序的构建，由于安全问题而不该使用它们。它们所提供的函数可以由 BLFS 书中的 <span class="application">openssh</span> 软件包提供。
              </p>
            </dd>
            <dt>
              <span class="term"><em class=
              "parameter"><code>--disable-servers</code></em></span>
            </dt>
            <dd>
              <p>
                此参数禁用了多个网络服务程序的安装，它们是 Inetutils 软件包的一部分。这些服务程序被认为不适用于基础的 LFS 系统。有些程序本来就不安全，只在可信网络中才能被认为是安全的。注意，它们很多都有更好的替代品。
              </p>
            </dd>
          </dl>
        </div>
        <p>
          编译软件包：
        </p>
        <pre class="userinput">
<kbd class="command">make</kbd>
</pre>
        <p>
          要测试结果，运行：
        </p>
        <pre class="userinput">
<kbd class="command">make check</kbd>
</pre>
        <p>
          安装软件包：
        </p>
        <pre class="userinput">
<kbd class="command">make install</kbd>
</pre>
        <p>
          移动一些程序，这样在 <code class="filename">/usr</code> 无法访问时它们仍然可用。
        </p>
        <pre class="userinput">
<kbd class="command">mv -v /usr/bin/{hostname,ping,ping6,traceroute} /bin
mv -v /usr/bin/ifconfig /sbin</kbd>
</pre>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          <a id="contents-inetutils" name="contents-inetutils"></a>6.39.2. Inetutils 包含内容
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">安装的程序：</strong>
              <span class="segbody">dnsdomainname, ftp, ifconfig, hostname,
              ping, ping6, talk, telnet, tftp, 和 traceroute</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            简介
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="dnsdomainname" name=
                    "dnsdomainname"></a><span class="term"><span class=
                    "command"><strong>dnsdomainname</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    显示系统的 DNS 域名
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="ftp" name="ftp"></a><span class=
                    "term"><span class="command"><strong>ftp</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    文件传输协议程序
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="hostname" name="hostname"></a><span class=
                    "term"><span class=
                    "command"><strong>hostname</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    报告或者设置主机名称
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="ifconfig" name="ifconfig"></a><span class=
                    "term"><span class=
                    "command"><strong>ifconfig</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    管理网络接口
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="ping" name="ping"></a><span class=
                    "term"><span class=
                    "command"><strong>ping</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    发送请求响应包，并报告响应用时
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="ping6" name="ping6"></a><span class=
                    "term"><span class=
                    "command"><strong>ping6</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    <span class="command"><strong>ping</strong></span> 用于 IPv6 网络的版本。
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="talk" name="talk"></a><span class=
                    "term"><span class=
                    "command"><strong>talk</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    用来和另一个用户交谈
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="telnet" name="telnet"></a><span class=
                    "term"><span class=
                    "command"><strong>telnet</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    TELNET 协议的一个接口
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="tftp" name="tftp"></a><span class=
                    "term"><span class=
                    "command"><strong>tftp</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    一个文件传输小程序
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="traceroute" name="traceroute"></a><span class=
                    "term"><span class=
                    "command"><strong>traceroute</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    追踪当前主机发送到网络上另一台主机的数据包的路径，显示沿路的所有中间跃点（网关）。
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="expat.html" title="Expat-2.2.0">上一页</a>
          <p>
            Expat-2.2.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="perl.html" title="Perl-5.24.1">下一页</a>
          <p>
            Perl-5.24.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="chapter06.html" title=
          "第六章&nbsp;安装基本系统软件">返回</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Linux From Scratch - Version 8.0 ">首页</a>
        </li>
      </ul>
    </div>
  </body>
</html>
